

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="layout" content="kickstart" />
<g:set var="entityName"
	value="${message(code: 'shiroRole.label', default: 'ShiroRole')}" />
<title><g:message code="default.list.label" args="[entityName]" /></title>
</head>
<body>


	<section id="list" class="first">
		
			<table class="table table-bordered">
				<thead>
					<tr>

						<g:sortableColumn property="id"
							title="${message(code: 'shiroRole.id.label', default: 'Id')}" />

						<g:sortableColumn property="name"
							title="${message(code: 'shiroRole.name.label', default: 'Name')}" />

						<th>
							${message(code: 'shiroUser.users.label', default: 'Users')}
						</th>

						<th>
							${message(code: 'shiroUser.permissions.label', default: 'Permissions')}
						</th>

					</tr>
				</thead>
				<tbody>
					<g:each in="${shiroRoleInstanceList}" status="i"
						var="shiroRoleInstance">
						<tr class="${(i % 2) == 0 ? 'odd' : 'even'}">

							<td><g:link action="show" id="${shiroRoleInstance.id}">
									${fieldValue(bean: shiroRoleInstance, field: "id")}
								</g:link></td>

							<td>
								${fieldValue(bean: shiroRoleInstance, field: "name")}
							</td>

							<td>
								${fieldValue(bean: shiroRoleInstance, field: "users")}
							</td>

							<td>
								${fieldValue(bean: shiroRoleInstance, field: "permissions")}
							</td>

						</tr>
					</g:each>
				</tbody>
			</table>
		
		<div class="pagination">
			<bs:paginate total="${shiroRoleInstanceTotal}" />
		</div>
	</section>
</body>
</html>
